<?php

Framework::needsToImplement("ICodeInterface");
Framework::needsToImplement("IWCDefaults");

class AjaxForm implements IWCDefaults, ICodeInterface, FormComponent {
	private $icode;
	private $name;
	private $elements;
	public function icodeSet($prop,$value){
		if(isset($this->icode[$prop])) {
				$op=$this->icode[$prop];
				$this->$op($value);			
		}
	}
	public function __construct($name){
		$this->name=$name;
		$this->icode=Array(
			'add'=>'add'
		);		
	}
	public function __toString() {
		
	}
	public function add($forms){
		
	}
	public function icodeSupportedProperties() {
		return $this->icode;	
	}
}
?>